const mongoose = require('mongoose')
const privateSchema = new mongoose.Schema({
    sendUser: { //发送者id
        type: mongoose.Schema.Types.ObjectId,
        ref: 'user' //引用
    },
    receiveUser: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'user' //引用
    },
    msg: String,
    date: String,
})

module.exports = mongoose.model('privatemsg', privateSchema)